package ua.kharkiv.karimov.knure.SummaryTask1.Airplanes;

public abstract class Airplane implements Craft {

	protected final double fuel;

	protected final double weight;

	protected final double wingspan;

	protected final double length;

	protected final double height;

	protected final String model;

	protected final String code;

	protected final double speed;

	protected Airport portTo;

	protected Airport portFrom;

	protected Coord coord;
	
	protected final double capacity;

	protected final double maxWeight;

	protected Airplane(){
		this.fuel = 0;
		this.weight = 0;
		this.wingspan = 0;
		this.length = 0;
		this.height = 0;
		this.model = "";
		this.code = "";
		this.speed = 0;
		this.capacity = 0;
		maxWeight = 0;
	}
	public Airplane(double fuel, double weight, double wingspan, double length, double height,
			String model, String code, double speed, double capacity, double maxWeight) {
		this.fuel = fuel;
		this.weight = weight;
		this.wingspan = wingspan;
		this.length = length;
		this.height = height;
		this.model = model;
		this.code = code;
		this.speed = speed;
		this.capacity = capacity;
		this.maxWeight = maxWeight;
	}

	public double getMaxFuel() {
		return fuel;
	}

	public double getWeight() {
		return weight;
	}

	public double getWingspan() {
		return wingspan;
	}

	public double getLength() {
		return length;
	}

	public double getHeight() {
		return height;
	}

	public String getModel() {
		return model;
	}

	public String getCode() {
		return code;
	}

	public double getMaxSpeed() {
		return speed;
	}

	public void setAirportTo(Airport port) {
		this.portTo = port;
	}

	public Airport getAirportTo() {
		return this.portTo;
	}

	public void setAirportFrom(Airport port) {
		this.portFrom = port;
	}

	public Airport getAirportFrom() {
		return this.portFrom;
	}

	public void setCoord(Coord coord) {
		this.coord = coord;
	}

	public Coord getCoord() {
		return this.coord;
	}

	public double getCapacity() {
		return capacity;
	}

	public double getMaxWeight() {
		return maxWeight;
	}
}
